# Contributor: Andrey Pustovetov <andrey.pustovetov@gmail.com>
# Maintainer: Andrey Pustovetov <andrey.pustovetov@gmail.com>
pkgname=kafkacat
pkgver=1.5.0
pkgrel=0
pkgdesc="Generic command-line non-JVM Apache Kafka producer and consumer"
url="https://github.com/edenhill/kafkacat"
arch="all"
depends="yajl librdkafka"
license="BSD-2-Clause"
options="!check" # upstream doesn't have a test suite
makedepends="bash yajl-dev librdkafka-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/edenhill/kafkacat/archive/$pkgver.tar.gz"

build() {
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--enable-json
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="57f75b26ef32df244043fa9fc17dc2d6fd93daeea4bc389aa78356ea6e45dea780ff9c3462ed27d2a7798560a21eef04f098bf7766c7305bcee4573f557651ad  kafkacat-1.5.0.tar.gz"
